﻿@if (Request.IsAuthenticated)
{
    <a href="@Url.Action("index", "home", null)" style="margin-top: 3px; float: left;">主页</a>
    <a href="@Url.Action("index", "home", null)" class="xl" style="float: left; margin-top: 3px;"></a>
    <a href="@Url.Action("MyInfoList", "PublishInfo", null)" style="margin-left: 20px; margin-top: 3px; float: left;">@Context.User.Identity.Name</a>
    <span style="margin-left: 3px; color: #999898; float: left; margin-top: 3px;">你好，欢迎来开心促销网！</span>
    @Html.ActionLink("我的促销", "MyInfoList", "PublishInfo", null, new { style = "margin-left: 10px; margin-top: 3px; float: left;" })
    @Html.ActionLink("个人信息", "UserInfo", "Account", null, new { style = "margin-left: 10px; margin-top: 3px; float: left;" })
    @Html.ActionLink("修改密码", "ChangePassword", "Account", null, new { style = "margin-left: 10px; margin-top: 3px; float: left;" })
    @Html.ActionLink("注销", "LogOff", "Account", null, new { style = "margin-left: 10px; margin-top: 3px; float: left;" }) 
}
else
{
    <a href="@Url.Action("index", "home", null)" style="margin-top: 3px; float: left;">主页</a><a href="@Url.Action("index", "home", null)" class="xl" style="float: left; margin-top: 3px;"></a>
    <span style="margin-left: 10px; color: #999898; float: left; margin-top: 3px;">欢迎来开心促销网！</span>
    @Html.ActionLink("请登录", "LogOn", "Account", null, new { style = "margin-left: 10px; margin-top: 3px; float: left;" }) 
    @Html.ActionLink("免费注册", "Register", "Account", null, new { style = "margin-left: 10px; margin-top: 3px; float: left;" }) 
}